// the following codes are tested for codes coverage
import './css/testchunk.less';

function coverage() {
  document.addEventListener('click', () => {
    // 影响代码利用率
    // const ele = document.createElement('div');
    // ele.innerHTML = 'hello~~~';
    // document.body.appendChild(ele);

    // 有些需要通过交互之后才能用到的代码, 通过异步加载来提高代码利用率
    import(/* webpackChunkName: 'handleClick', webpackPrefetch: true */ './click').then(({ default: func }) => {
      func();
    });
  });
}

export default coverage;
